package com.codinghero.tiyutupian.spider.dto;

public class HuabanPage {
	private String tinyImgUrl;
	private String smallImgUrl;
	private String midImgUrl;
	private String largeImgUrl;
	private String nextPageUrl;

	public String getMidImgUrl() {
		return midImgUrl;
	}

	public void setMidImgUrl(String midImgUrl) {
		this.midImgUrl = midImgUrl;
	}

	public String getLargeImgUrl() {
		return largeImgUrl;
	}

	public void setLargeImgUrl(String largeImgUrl) {
		this.largeImgUrl = largeImgUrl;
	}

	public String getTinyImgUrl() {
		return tinyImgUrl;
	}

	public void setTinyImgUrl(String tinyImgUrl) {
		this.tinyImgUrl = tinyImgUrl;
	}

	public String getNextPageUrl() {
		return nextPageUrl;
	}

	public void setNextPageUrl(String nextPageUrl) {
		this.nextPageUrl = nextPageUrl;
	}
	
	public String getSmallImgUrl() {
		return smallImgUrl;
	}

	public void setSmallImgUrl(String smallImgUrl) {
		this.smallImgUrl = smallImgUrl;
	}

	
	public void calLargeImgUrl() {
		this.largeImgUrl = this.midImgUrl.substring(
				0, this.midImgUrl.indexOf("_fw554"));
	}
	
	public void calTinyImgUrl() {
		this.tinyImgUrl = this.largeImgUrl + "_sq75";
	}
	
	public void calSmallImgUrl() {
		this.smallImgUrl = this.largeImgUrl + "_fw192";
	}
	
	public void calOtherImgUrl() {
		this.calLargeImgUrl();
		this.calTinyImgUrl();
		this.calSmallImgUrl();
	}
}
